package com.tledu.equipment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tledu.common.annotation.Excel;
import com.tledu.common.core.domain.BaseEntity;

/**
 * 设备使用记录对象 equipment_use
 * 
 * @author ruoyi
 * @date 2024-08-29
 */
public class EquipmentUse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    private Long id;

    /** 是否是最后一条使用记录 0是,1不是 */
    private Long isLatest;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipmentId;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIsLatest(Long isLatest)
    {
        this.isLatest = isLatest;
    }

    public Long getIsLatest()
    {
        return isLatest;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentId", getEquipmentId())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .toString();
    }
}
